<template>
 <div>{{ aaa }}</div>
 <button @click="fn">点我改变</button>
</template>

<script setup>
import { inject} from 'vue'

const aaa=inject('myData')
const bbb=inject('chengeaaa')
const fn=()=>{
  bbb(true)
}
</script>

<style lang='scss' scoped>

</style>
